completes #146 - PostgreSQL scheduler implementation