use geminidb and add setting window

also fixes some alignment issues