Database is working. Also added connection check in TaskCreateModel, so the task loads the model from the database if theres no connection to the internet