Added calls in partition_db
fixed forward declaration issues