changed database access functions to 1.1.x versions