getFromDbById using promise fixes #2