Cleaning some stuff

Database connecting properly and everything seems to be working at the
moment. Need to fix formatting stuff still.