add db and procedure