Adds database initialization script and model relationships