fixed psql module, added spike to validate_db_connection exec, fixed templates