Server functions for poly_database