rake task to backup and restore the database

This PR introduces a rake task for backing up the database. It is aware of what kind of db is used and uses the appropriate command line tools available (dbms specific). Right now it supports postgresql and mysql.