add headers to output, move database to relative path