fix crash by moving view init into database setup