Added database support.
Update layout settings