completed database and initialviews
completed database and initialviews #2