Add extra db_replace

Replace environment dependent stored procedure definer with db_replace