PostgreSQL based database with a python magic