Database option added for sites
Fix data type