Added boilerplate database connection code, renamed some files