bug fix related to initialization of database