#22 implemeting refactoring as mentioned in the ticket
- created new bean to setup the light hooks to motion sensor
- encapsulation better than inheritance
- builder pattern to name the method arguments to avoid long list of
  arguments for the method
 #23 moving DB properties and sql down to model where it belongs