added necessary self. to db vars