Partitioned DB between data and security