Got a simple tornado application that can query the pg database working