add database operations