added new DB code