Schema db

Please have a look for merging the new shema and the synchronization.