Option to clear database, better service version check