Date saving when selecting pattern bugfix/data transfer additions/initial sql