fixed erro with _prepareDatabase parms