bugfix: bug on initialize empty database.