Changed name from aux... to database_functions, and reworked all modules to contain only one type of functions, eg only working with database