Deleted some unnecessary database code.