database thought out