Redirect and add db stuff