Fix data handler creation (database credentials)