generalized the database params into defines