cache connection in model class
put database related values into constants