RoR implementation of phdog tracking db