Moved maildir path to SQL query for #17