Previous commit did not work with postgresql

This one works with both postgresql + sqlite3 and fixes #45 !