Working database setter and getter