removed DB functions