successfully reintegrated database functions