Implemented remaining create operations for database and changed id type to long for all objects