Got rid off some exec and im now using the postgresql module