updated schema sql statements