Database issues fixed

Signed-off-by: rayhan <hossain.rayhan@outlook.com>