encode.php agai odified to push into db