Fixed bug in predictor, wrong arguments for postgres db.