Create random category factory to prevent key validation errors.
reinstate database cleaner for tests.
cleanup whitespace.
#117 replace pg specific time function with ruby code.
Close #117 - reinstate sqlite for test and development