Some style fixes + SQL query fixes in procedures
Add core logic into construcions tab
Add editing for Building table