Added mysql db. Implemented device handling. Implemented push