Clean up of db