Database classes mirroring those at backend.
Database bug fixed