moved location db factory method