Makefile: set global CFLAGS, LDFLAGS and LIBS
test: connect with password and fix newsleeper
better error handling
better function names
various small fixes
don't set w.events directly, always use ev_io_set()
PQresetStart() needs to be paired with PQresetPoll()
check parameters in db:exec() and db:run()