Changed Ratio's internal database to use sqlite. Still needs some work.