Simplified check if date vaule for lastseen is correct
Reduced the SQL statement to creat TEXT columns further to work with SQLite and MySQL