many utils and db functions