Addition of database functions