Started work on the db package for typescript.