* migrate database services and utils to ts * Migrate tests Co-authored-by: Diego Mello <diegolmello@gmail.com>