error in GetFirstName sql + added image files
generalized the database parameters and made a global define.