Database main analysis