encapsulated into a method
creates base controller
fixes bgs
adds method toMap() and getters returnign value as strings. WIll help to make JSOn version of the object
makes constants which define names of fields match the names of columns in the SQL table, so that we can use them as spec.
Also adds setters which can be chained.
changed way PersistDb is initialized to Singleton call
moved mock classes to [mock] package
cascading from moving mocks to [mock] package
makes some getters public and fixes bugs in toString() (where incorrect value type identifier was used in String.format() and also fixes bug with uninitialized data.
adds some TODOs, as this one class may require refactoring
adds initialization of JDBC data source for Spring JDBC template and implements method getLatestTweets() using the template
adds test case for listing latest tweets from the db
fixes size()==0 to isEmpty()
makes base Controller implement makeError() and intialize logger