complete all database operations