add basic db helper js