added support to write bus details to sqlite3 db
First working alpha