Improve PHPDoc return type hints
Travis should create test database
Initial database tests
Add begin transaction fallback for PHP 5.4