Migration fix
Fix database functions
Add container model
Implement cancel build handler