require db connection