removed old database code