Renamed the method to create the tables
Modified the insert method of the database by insertOrUpdate. This will avoid problems when refresh