Added update, delete, insert db functions