strip out database code