Changed database backend to mysql.
Merge https://github.com/orpjones/BMS