libevent sql access (postgres support)