got linking files working with stub database.