clean up unused database code
clean up unused database code