Added DB script and did minor work on _Layout