Fixed small database error