Modified the code for DB support