Added db initialization