Added the rules module and the db folder to the root directory. Please create db before running SQL script
Slight updates- More work on the rules model. Not done though