Fix db model connection.