Add database support and set min-width