updated rake tasks and setup for database work