db schema and fucntion change