making view completion grabbed from database instead of test data