Completed database APIs

The database has been created with APIs.