DB function added