saving to database operational