changes to database generation scripts and more elegant solution for hapmap image