support http request from jquery
adjust the database format for the real world