Syntax errors fix.

Also added database creation.