Add Jersey test to resources
Add database configurations to rule model
Implemented rule service