Adds database backing for g/ to save and query redirects

Adds SQLAlchemy models to the g package and associated code to setup and query
GRedirect objects. Redirects work!