Fix rake tasks now we have a database