fixing the two entity db creation problem. removed metadata and still not fixed. fix tomorrow.