Add more compatibility APIs to the database class