Use some dummy stuff and psycopg2 to rasterize without ogr pg driver.