Refactored database resources into individual recipe.
Fixed style issues