add board size, home directory to constants

also base database location on home directory