fixed dbconnection