fix to get_db...uses app context if g is None.
Merge branch 'master' of https://github.com/Line-Up-Admin/CSE-403-Spring2014