fixed databaseconnection return issue