Add DB connection, pull user submission count

Add code to connect to local mySQL database, pulling the user's current
number of submissions.