using pony for queries
added listing of res into database