updates in database functions and general updates