database fixes for submissions