Added error logging and better pkey handling to ./elefant crud-app generator