added fxns to the database to be implemented