further implement back-end side.
moved service configurations to database.