add sql install script and update database design