All database functions working.