init the database if it is empty (apps and displays)