moved db functions from app.js into seedling for clarity's sake. added redirect after successful login