Added basic console rake task. Moved db initialisation.