Check if databases is a hash before creating resources with it