Added groundwork for db interfacing with ratings