use geminidb and add setting window

also fixes some alignment issues
Could you give this an alignment as well? Just for the readability