Updated a function in the Database API

As above.