implemented DB initialization