removing db code