Began writing code to access database