Support MySQL, PostgreSQL and Migrations

This pr is rework https://github.com/drone/drone/pull/426 without gorm

## Features
1. Support PostgreSQL, SQLite, MySQL
2. Migrations port from master
3. Test data renamed to fixtures and use Meddler