Added Database Variables
also added build hooks