HTTP wrapper for database