tests - travis specific changes

Changes in this commit:
* rename `database.yml.sample` to `database.yml` in before_script
* create mysql database courses_test, to be used by travis
* populate the test db with schema.