only problems, cant run it from cmd and db transactions