Fixing database scripts.
Merge pull request #22 from fbouquet/database_scripts_fix

Fixing database scripts.