working on database_load function