changed db code to 1 line getters