Added db cals to js