Deploy

Use mysql2 as database adapter.
fix migrations.
add checkout functionality.