Fixed DB connection - Cleaned up the few things you had questions about in the comments.