change tiles to mosaics
add data directory
begin to add sqlite3 support