Updates to add in sql stuff