Replaced db_functions and sql_functions
Used reetsee lib for db