adding database functions and configs