loading database work