changed database operations