Restful web service works with database now.