modifed control methods for database communication