Is it possible to store Custom Post Type data in separate set of tables and still have wp_post class functionality?

Is it possible to store Custom Post Type data in separate set of tables and still have wp_post class functionality?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)