old database code removed