built student class, incorporated database access into spec and env files