added active record php side database adaptor, made to be used with jquery getJSON