Big azz commit: Make preKix more or less functional

Working interface that now saves and loads from database.