Improve parsing of fraction database.