added snippet model

+added company_name to settings
migrate to mysql

+some fixes