Deleting old database code