Rename bad php file extension
Refactor database abstraction layer. Add Query class and mysql adapter
Update composer dependencies. Add dependency for php 5.5