formated entities files, replaced statemets on prepareStatements