#388 Moved upgrade queries for version 1.12.0 -> 1.13.0 to database patch