Fixed two small bugs

Date was not parsed correctly and test visits were not saved to the DB
yet.