Fixed DB to output directory and got connection to DB Working