Added database dependency to project and tidied directory.