Added empty check in stock_locations config
Rework database script (contains stock_locations + item_quantities tables)