use standard output stream for errors for debug messages
add sql output format

Use the output dir parameter to specify the table name. Column names are id and
geom. Use something like this to prepare the table and insert the data

psql -c "CREATE TABLE cells (id bigint); \
SELECT AddGeometryColumn('cells', 'geom', 0, 'POLYGON', 2);"

./build/create_polygons ../data/brandenburg.novillages.txt cells sql 0.2 0.04 0.01 | psql

psql -c "UPDATE cells SET geom = ST_SetSRID(geom, 4326);"

Have fun while inspecting the data in qgis.