first approximation at sleep import, added tables and started frontend integration