Removed old database interface code. Added TODO tags where functions
need to be updated for using the local database