made a getter for db in both interface and formtm