add new function to clean up DB data