added custom automake functions
updated database definition
updated TypeModule argument to fit syntax sugar
updated lib defines