Fixed database schema definitions for fresh install