Make MySQL optional

Use of MySQL is now optional. If not selected SQLite is used instead.