Updated DB interface unite tests and functions