added some routine with DB