get rid of old database code