Database server without rails and Capistrano

Hi guys,
I've a stupid capistrano question. This is my production environment:

2 web server
1 database server

Is it possible to configure capistrano in order to migrate the
database in my database server (only mysql is installed, not ruby)?

Is enough to change the "role :db" host in the deploy.rb?

Thanks for your help!
Roberto